mvn clean package -Dmaven.test.skip=true -Pdev

if [ -f "pid_file" ]; then
    kill -9 $(cat pid_file)
fi

nohup java -Duser.timezone=UTC -client -Xmx512m -Xms512m -Xmn256m -XX:+DisableExplicitGC  -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:ParallelGCThreads=6 -XX:ParallelCMSThreads=6 -XX:-OmitStackTraceInFastThrow -jar target/visualnovel.jar &

echo $! > pid_file

tail -f nohup.out
